package com.live.dengdengtv.bean;

import com.live.dengdengtv.kernel.utils.SxbLog;
import com.tencent.TIMLogLevel;

import java.util.HashMap;

/**
 * Created by wyf on 2016/8/1.
 */
public class AppInfo {


    


    public static final String TOKEN = "E3B77278ED24DD791644561B80012C77";
    public static final String PHONE_TYPE = "2";//IOS = 1, android = 2
    /**手机系统版本*/
    public static String phone_system_version = "5.0";
    /**APP版本*/
    public static String phone_app_version = "1.0.0";
    /**手机设备ID，推送识别ID
     * 客户端获取推送权限时获取该值，
     * 若未获取权限或未获取到值，则传空字符串或不传*/
    private static String client_id ="";

    /**登陆用户信息*/
    public static final LoginInfo loginInfo = LoginInfo.getInstance();
    /**报文body头信息*/
    private static HashMap<String,String> headInfo = new HashMap<String,String>();



    public static HashMap<String,String> getHeadInfo(){
        headInfo.put("token",TOKEN);
        headInfo.put("phone_type",PHONE_TYPE);
        headInfo.put("phone_system_version",getPhone_app_version());
        headInfo.put("phone_app_version",getPhone_app_version());
        headInfo.put("client_id",getClient_id());
        headInfo.put("user_id",loginInfo.getUserId());
        return headInfo;
    }

    public static HashMap<String,String> writeInHeadInfo(HashMap<String,String> param){
        param.putAll(getHeadInfo());
        return param;
    }

    public static String getPhone_system_version() {
        return phone_system_version;
    }

    public static void setPhone_system_version(String phone_system_version) {
        AppInfo.phone_system_version = phone_system_version;
    }

    public static String getPhone_app_version() {
        return phone_app_version;
    }

    public static void setPhone_app_version(String phone_app_version) {
        AppInfo.phone_app_version = phone_app_version;
    }

    public static String getClient_id() {
        return client_id;
    }

    public static void setClient_id(String client_id) {
        AppInfo.client_id = client_id;
    }

    private static String liveTitle="";
    public static void setLiveTitle(String liveTitle) {
        AppInfo.liveTitle = liveTitle;
    }
    public static String getLiveTitle() {
        return AppInfo.liveTitle;
    }
    private static String liveId="";

//    public static String getLiveId() {
//        return liveId;
//    }
//
//    public static void setLiveId(String liveId) {
//        AppInfo.liveId = liveId;
//    }

    public static TIMLogLevel logLevel = TIMLogLevel.OFF;

    public static void setLogLevel(TIMLogLevel logLevel) {
        AppInfo.logLevel = logLevel;
    }
    public static TIMLogLevel getLogLevel() {
        return logLevel;
    }
}
